﻿using System.Web;
using System.Web.Optimization;

namespace LigerUi.WebSite
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {

            //程序发布时请使用下面的Bundle
            /* bundles.Add(new ScriptBundle("~/Scripts/jQuery").Include(
                         "~/Scripts/jquery-1.8.2.min.js"
                         , "~/Scripts/jquery.validate.min.js"

                         , "~/Scripts/jquery.validate.unobtrusive.min.js" //微软非侵入式验证
                         , "~/Scripts/jquery.unobtrusive-ajax.min.js" //AJAX Form 提交
                         ));
             */

            bundles.Add(new ScriptBundle("~/Scripts/jQuery").Include(
                      "~/Scripts/jquery-1.8.2.js"
                      , "~/Scripts/jquery.validate.js"

                      , "~/Scripts/jquery.validate.unobtrusive.js" //微软非侵入式验证
                      , "~/Scripts/jquery.unobtrusive-ajax.js" //AJAX Form 提交
                      , "~/Scripts/LigerUI/jquery-validation/messages_cn.js"
                      ));


            bundles.Add(new ScriptBundle("~/Scripts/LigerUI/js").Include(
                        "~/Scripts/LigerUI/js/ligerui.all.js"
                        , "~/Scripts/LigerUI/json2.js"
                          , "~/Content/Common.js"
                        ));

            bundles.Add(new StyleBundle("~/Scripts/LigerUI/css").Include(
                        "~/Scripts/ligerUI/skins/ligerui-icons.css"
                       , "~/Scripts/LigerUI/skins/Gray2014/css/all.css"
                       , "~/Content/common.css"
                       ));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            //bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
            //            "~/Scripts/modernizr-*"));

            //bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            //bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
            //            "~/Content/themes/base/jquery.ui.core.css",
            //            "~/Content/themes/base/jquery.ui.resizable.css",
            //            "~/Content/themes/base/jquery.ui.selectable.css",
            //            "~/Content/themes/base/jquery.ui.accordion.css",
            //            "~/Content/themes/base/jquery.ui.autocomplete.css",
            //            "~/Content/themes/base/jquery.ui.button.css",
            //            "~/Content/themes/base/jquery.ui.dialog.css",
            //            "~/Content/themes/base/jquery.ui.slider.css",
            //            "~/Content/themes/base/jquery.ui.tabs.css",
            //            "~/Content/themes/base/jquery.ui.datepicker.css",
            //            "~/Content/themes/base/jquery.ui.progressbar.css",
            //            "~/Content/themes/base/jquery.ui.theme.css"));
        }
    }
}